package com.bbzn.device.client.service;

import java.util.List;
import com.bbzn.device.client.dataobject.DeviceCategory;
import com.bbzn.device.client.dto.device.CreateNbDeviceDTO;
import com.bbzn.device.client.dto.device.DeviceCategoryDTO;
import com.bbzn.device.client.utils.PageInfo;

public interface DeviceCategoryService {


    int deleteByPrimaryKey(Long id);

    int insert(DeviceCategory record);

    int insertOrUpdate(DeviceCategory record);

    int insertOrUpdateSelective(DeviceCategory record);

    int insertSelective(DeviceCategory record);

    DeviceCategory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DeviceCategory record);

    int updateByPrimaryKey(DeviceCategory record);

    int updateBatch(List<DeviceCategory> list);

    int batchInsert(List<DeviceCategory> list);

    List<DeviceCategory> findByAll(DeviceCategory deviceCategory);

    int updateBatchSelective(List<DeviceCategory> list);

    int findCountByAll(DeviceCategoryDTO record);

    PageInfo<DeviceCategory> selectPageByAll(DeviceCategoryDTO deviceCategory);

    /**
     * 获取设备类目名称+NB产品master_key+NB产品ID
     *
     * @param deviceCategoryId
     * @return
     */
    CreateNbDeviceDTO queryNbParam(Long deviceCategoryId);

    List<DeviceCategory> selectByAll(DeviceCategory deviceCategory);
}



